package scu_elon.mypackage;

import android.app.Application;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;

public class OurApplication extends Application {
	 private List<Activity> Activitys = new ArrayList<Activity>();
     public List<Activity> getActivitys() {
             return Activitys;
     }
     public void addActivity(Activity act) {
             Activitys.add(act);
     }
     public void finishAll() {
             for (Activity act : Activitys) {
                     if (!act.isFinishing()) {
                             act.finish();
                     }
             }
             Activitys = null;
     }
}
